class AuthMiddleware:
    def __init__(self, application):
        self.application = application
        # print('AuthMiddleware>>>>>>', self.application)
        # print(self)

    def __call__(self, scope):
        # print('AuthMiddleware>>>>>>call方法执行了', scope)
        # scope中封装了本次请求的所有信息
        return self.application(scope)
